package fm.dto;

import com.mongodb.DBObject;
import fm.util.DateUtils;
import org.bson.types.ObjectId;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class NeiyiUser extends SystemUser {
//    private String _id;
    private String contact;
    private String companyName;
    private String stName;
    private UserAddress userAdd;
    private UserAddressName userAddressName;
    private String userContact;
    private String userDsc;
    private String majarbus;
    private String chairtMan;
    private String certCard;
    private String openBank;//开户行
    private String busCity;
    //状态0-未提交资料，1-待审核，2-通过审核 批量导入用户默认待审核
    private Integer reviewStatus;
    private Integer topLevel;
    private String reviewNote;
    private Date regTime;
    private String remark;
    private String regType;
    private String userLogo;
    private String busListenerPic;
    private String idCardImg1;
    private String idCardImg2;
    private List<String> companyPics;
    private List<Map<String, String>> flags;
    private List<Map<String, String>> agencyBrandList;
    private List<Map<String,String>> logPriceList;//物流报价
    private BigDecimal lat;
    private BigDecimal lng;
    private String idCard;
    private String unionid;
    private String vrcd;
    private String appwebName;

    private Long  collect_count;
    private String token;//登陆用的身份验证，过期时间为7天

    private String lastCity;
    private String lastIp;
    private String lastTime;

    public Integer getFirstUpdate() {
        return firstUpdate;
    }

    public void setFirstUpdate(Integer firstUpdate) {
        this.firstUpdate = firstUpdate;
    }

    private  Integer firstUpdate;
    public List<Map<String, String>> getLogPriceList() {
        return logPriceList;
    }

    public void setLogPriceList(List<Map<String, String>> logPriceList) {
        this.logPriceList = logPriceList;
    }
    private List<DBObject> goods;

    public String getLastCity() {
        return lastCity;
    }

    public void setLastCity(String lastCity) {
        this.lastCity = lastCity;
    }

    public Integer getTopLevel() {
        return topLevel;
    }

    public void setTopLevel(Integer topLevel) {
        this.topLevel = topLevel;
    }
    public Long getCollect_count() {
        return collect_count;
    }

    public void setCollect_count(Long collect_count) {
        this.collect_count = collect_count;
    }


    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }

    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getVrcd() {
        return vrcd;
    }

    public void setVrcd(String vrcd) {
        this.vrcd = vrcd;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }
//    public String getId() {
//        return _id;
//    }

//    public void setId(String _id) {
//        this._id = _id;
//    }


    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }

    public void setUserAdd(UserAddress userAdd) {
        this.userAdd = userAdd;
    }

    public void setUserAddressName(UserAddressName userAddressName) {
        this.userAddressName = userAddressName;
    }

    public List<Map<String, String>> getFlags() {
        return flags;
    }

    public void setFlags(List<Map<String, String>> flags) {
        this.flags = flags;
    }
    public List<Map<String, String>> getAgencyBrandList() {
        return agencyBrandList;
    }

    public void setAgencyBrandList(List<Map<String, String>> agencyBrandList) {
        this.agencyBrandList = agencyBrandList;
    }

    public String getAppwebName() {
        return appwebName;
    }

    public void setAppwebName(String appwebName) {
        this.appwebName = appwebName;
    }

    public NeiyiUser() {
    }

    public NeiyiUser(String id, String name, Integer userType, String phone, String contact, String companyName, String stName, String userContact, String userDsc,
                     String majarbus, String chairtMan, String certCard, String openBank, String busCity, Integer reviewStatus,
                     String reviewNote, Date regTime, String remark, String regType,
                     String userLogo, String busListenerPic, String idCardImg1, String idCardImg2, List<String> companyPics,
                     String city, String province, String town, String detailAddress, String openid, String token, Integer topLevel,List<DBObject> goods,String vrcd,
                     String appwebName,Integer firstUpdate) {
        this.id = id;
        this.name = name;
        this.userType = userType;

        this.phone = phone;
        this.contact = contact;
        this.companyName = companyName;
        this.topLevel = topLevel;
        this.stName = stName;
        this.userContact = userContact;
        this.userDsc = userDsc;
        this.majarbus = majarbus;
        this.chairtMan = chairtMan;
        this.certCard = certCard;
        this.openBank = openBank;
        this.busCity = busCity;
        this.reviewStatus = reviewStatus;
        this.reviewNote = reviewNote;
        this.regTime = regTime;
        this.remark = remark;
        this.regType = regType;
        this.userLogo = userLogo;
        this.busListenerPic = busListenerPic;
        this.idCardImg1 = idCardImg1;
        this.idCardImg2 = idCardImg2;
        this.companyPics = companyPics;
        this.userAdd = new UserAddress(city, province, town, detailAddress);
        this.openid = openid;

        this.token = token;
        this.goods = goods;
        this.vrcd = vrcd;
        this.appwebName = appwebName;
        this.firstUpdate = firstUpdate;
    }

    public List<DBObject> getGoods() {
        return goods;
    }

    public void setGoods(List<DBObject> goods) {
        this.goods = goods;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public void setStName(String stName) {
        this.stName = stName;
    }

    public String getStName() {
        return stName;
    }

    public UserAddress getUserAdd() {
        return userAdd;
    }

    public void setUserAdd(String city, String province, String town, String detailAddress) {
        this.userAdd = new UserAddress(city, province, town, detailAddress);
    }

    public UserAddressName getUserAddressName() {
        return userAddressName;
    }

    public void setUserAddressName(String provinceName, String cityName, String townName) {
        this.userAddressName = new UserAddressName(provinceName, cityName, townName);
    }

    public String getUserContact() {
        return userContact;
    }

    public void setUserContact(String userContact) {
        this.userContact = userContact;
    }

    public String getUserDsc() {
        return userDsc;
    }

    public void setUserDsc(String userDsc) {
        this.userDsc = userDsc;
    }

    public String getMajarbus() {
        return majarbus;
    }

    public void setMajarbus(String majarbus) {
        this.majarbus = majarbus;
    }

    public String getChairtMan() {
        return chairtMan;
    }

    public void setChairtMan(String chairtMan) {
        this.chairtMan = chairtMan;
    }


    public String getOpenBank() {
        return openBank;
    }

    public void setOpenBank(String openBank) {
        this.openBank = openBank;
    }

    public String getCertCard() {
        return certCard;
    }

    public void setCertCard(String certCard) {
        this.certCard = certCard;
    }


    public String getBusCity() {
        return busCity;
    }

    public void setBusCity(String busCity) {
        this.busCity = busCity;
    }

    public Integer getReviewStatus() {
        return reviewStatus;
    }

    public void setReviewStatus(Integer reviewStatus) {
        this.reviewStatus = reviewStatus;
    }

    public String getReviewNote() {
        return reviewNote;
    }

    public void setReviewNote(String reviewNote) {
        this.reviewNote = reviewNote;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = new Date();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRegType() {
        return regType;
    }

    public void setRegType(String regType) {
        this.regType = regType;
    }

    public String getUserLogo() {
        return userLogo;
    }

    public void setUserLogo(String userLogo) {
        this.userLogo = userLogo;
    }

    public String getBusListenerPic() {
        return busListenerPic;
    }

    public void setBusListenerPic(String busListenerPic) {
        this.busListenerPic = busListenerPic;
    }

    public String getIdCardImg1() {
        return idCardImg1;
    }

    public void setIdCardImg1(String idCardImg1) {
        this.idCardImg1 = idCardImg1;
    }

    public String getIdCardImg2() {
        return idCardImg2;
    }

    public void setIdCardImg2(String idCardImg2) {
        this.idCardImg2 = idCardImg2;
    }

    public List<String> getCompanyPics() {
        return companyPics;
    }

    public void setCompanyPics(List<String> companyPics) {
        this.companyPics = companyPics;
    }


}
